package org.personal.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.personal.Constants;

import com.util.ConfigUtil;

public class AdminServlet extends HttpServlet
{
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException 
	{
		String pagePath="index.jsp";
		if (ConfigUtil.getAttribute(Constants.DEFAULT_PAGE)!=null)
		{
			pagePath=ConfigUtil.getAttribute(Constants.DEFAULT_PAGE);
		}
		String action=request.getParameter("action");
		
		
		request.getRequestDispatcher(pagePath).forward(request,response);
	}
}
